#include "swpartifactgraphicitem.h"

#include "graphicitemcommon.h"

using namespace core;
using namespace swp;

SwpArtifactGraphicItem::SwpArtifactGraphicItem(const QString& artifactName,
    QGraphicsItem* parent) : SwpEntityGraphicItem(
        artifactName.isEmpty() ? QObject::tr("artifact") :
            artifactName, QObject::tr("artifact"), parent)
{

}

SwpArtifactGraphicItem::~SwpArtifactGraphicItem()
{

}

int SwpArtifactGraphicItem::type() const
{
    return SWP_ARTIFACT_ITEM;
}

QString SwpArtifactGraphicItem::name() const
{
    return QObject::tr("Artifact");
}

IEditorItem* SwpArtifactGraphicItem::copy() const
{
    return new SwpArtifactGraphicItem(m_entityName, 0);
}
